/*
 * OpenYMSG, an implementation of the Yahoo Instant Messaging and Chat protocol.
 * Copyright (C) 2007 G. der Kinderen, Nimbuzz.com 
 * 
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 * 
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 * 
 * You should have received a copy of the GNU General Public License along
 * with this program; if not, write to the Free Software Foundation, Inc.,
 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. 
 */
package org.openymsg.network;

/**
 * Enumeration of all (authentication) states of a Session objects.
 * 
 * @author G. der Kinderen, Nimbuzz B.V. guus@nimbuzz.com
 * @author S.E. Morris
 * @author Mehran Maghoumi [aka SirM2X] (maghoumi@gmail.com)
 */
public enum SessionState {
    UNSTARTED, // Not logged in
    CONNECTING, // Started to logon
    CONNECTED, // Step one of logon successfully completed
    LOGGED_ON, // Step two of logon successfully completed
    FAILED, // Dead by Error
    
    // further states to detail the login process more clearly
    INITIALIZING,  //when the pinger threads are starting
    STAGE1,	//Stage 1 is about to be completed
    STAGE2,	//State 2 is about to be completed
    WAITING;
}
